package com.example.vueadmin.controller;

import com.example.vueadmin.entity.Finance;
import com.example.vueadmin.responseEntity.ServerResponse;
import com.example.vueadmin.service.FinanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/erp")
public class FinanceController {
    @Autowired
    private FinanceService financeService;

    @GetMapping("/getErp")
    private ServerResponse getErp() {
        Finance data = financeService.getErp();
        return ServerResponse.ok(data);
    }
}
